#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import reservationconsulter_blueprint
from api_1_0.reservationConsulterResource.reservationConsulterResource import ReservationConsulterResource
from api_1_0.reservationConsulterResource.reservationConsulterOtherResource import ReservationConsulterOtherResource

api = Api(reservationconsulter_blueprint)

api.add_resource(ReservationConsulterResource, '/reservation-consulter/<auto_id>', '/reservation-consulter', endpoint='ReservationConsulter')


@reservationconsulter_blueprint.route('/reservationconsulter/update/<auto_id>', methods=['PUT'], endpoint='ReservationConsulterUpdate')
def update(auto_id):
    return ReservationConsulterOtherResource.sensitive_update(auto_id)
